Skip to content

Conversation

enm-intel
Copy link
Contributor

Added two new tests for allocating opaque host memory for IPC.

Related-To: NEO-15836

Related-To: NEO-15836

Signed-off-by: Eric Mortensen <[email protected]>
Related-To: NEO-15836

Signed-off-by: Eric Mortensen <[email protected]>
Related-To: NEO-15836

Signed-off-by: Eric Mortensen <[email protected]>
Related-To: NEO-15836

Signed-off-by: Eric Mortensen <[email protected]>
Related-To: NEO-15836

Signed-off-by: Eric Mortensen <[email protected]>
lzt::destroy_context(context);
}

static void run_ipc_host_mem_access_test_opaque(size_t size,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need new function for host mem? lot of code is duplicated right? can we have another arg to original function such as run_ipc_mem_access_test_opaque(..., bool inDeviceMem) that dictates whether you call allocate_host_memory() or allocate_device_memory?

GivenL0MemoryAllocatedInChildProcessWhenUsingL0IPCThenParentProcessReadsMemoryCorrectly) {
run_ipc_mem_access_test_opaque(TEST_DEVICE_ACCESS, 4096, false,
ZE_IPC_MEMORY_FLAG_BIAS_UNCACHED, false);
run_ipc_dev_mem_access_test_opaque(TEST_DEVICE_ACCESS, 4096, false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it might be good to state the memory placement in Test name above, i.e something like "GivenL0MemoryAllocatedInChildInDeviceMem*" so we can easily identify in GTA runs what kind passes/fails. thoughts @nrspruit ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants